class OutletStatus < ActiveRecord::Base
  belongs_to :log
  belongs_to :outlet
  
  
  validates :outlet_id,
    :numericality => { :only_integer => true ,
    :message => "Outlet must be a number. Do not repeat numbers."}
#http://guides.rubyonrails.org/active_record_validations_callbacks.html

  def self.get_outlet_status
     outlet_info = OutletStatus.all
     #OutletStatus.where(:priority => '3')
     return outlet_info
  end
end
